package com.wude.guild.holder;

import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.wude.bean.JifenDetailBean;
import com.wude.bean.MyTrafficDetailBean;
import com.wude.guild.R;

import org.xutils.x;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by 唐小妹 on 2017/12/11 0011.
 */

public class JifenDetailHolder extends BaseHolder<JifenDetailBean> {
    @BindView(R.id.tv_desc)
    TextView tv_desc;
    @BindView(R.id.tv_addTime)
    TextView tv_addTime;
    @BindView(R.id.tv_point)
    TextView tv_point;

    @Override
    protected void refreshView(JifenDetailBean jifenDetailBean, int position, Activity activity) {
        tv_desc.setText(jifenDetailBean.desc + "");
        tv_addTime.setText(jifenDetailBean.addtime + "");
        tv_point.setText(jifenDetailBean.point + "");
    }

    @Override
    protected View initView() {
        View inflate = LayoutInflater.from(x.app()).inflate(R.layout.jifen_detail_holder, null);
        ButterKnife.bind(this, inflate);
        inflate.setTag(this);
        return inflate;
    }
}
